#ifndef MARKDOWN_EDITER_H
#define MARKDOWN_EDITER_H
#include <QWebEngineView>
#include <QPlainTextEdit>
#include <QWebChannel>
#include "edit_base.h"
#include "markdownediter/document.h"
#include "markdownediter/previewpage.h"
class markdown_editer:public EditBaseWidget
{
public:
    markdown_editer(QString FilePath, QWidget* parent);
protected:
    virtual void init_extra_member_val(); //重写自有变量初始化
    virtual void resize_editer(int w, int h); //重写缩放事件
    virtual void InitUiStyle();// 重写初始布局
    virtual void file_edited(); //重写编辑状态响应
private:
    QWebEngineView* pre_area;
    Document* doc;
    PreviewPage* pre;

};

#endif // MARKDOWN_EDITER_H
